﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
namespace BLL
{
 public    class PowerBLL
    {
     PowerDAL dal = new PowerDAL();
     /// <summary>
     /// 权限表的显示
     /// </summary>
     /// <returns></returns>
     public List<Powers> Power_Show()
     {
         return dal.Power_Show();

     }
     /// <summary>
     /// 删除权限表信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public int Powers_Delete(int id)
     {
         return dal.Powers_Delete(id);
     }
     /// <summary>
     /// 添加权限表信息
     /// </summary>
     /// <param name="p"></param>
     /// <returns></returns>
     public int Power_Add(Powers p)
     {
         return dal.Power_Add(p);
     }
     /// <summary>
     /// 显示权限表详细信息
     /// </summary>
     /// <param name="id"></param>
     /// <returns></returns>
     public Powers Power_Content(int id)
     {
         return dal.Power_Content(id);
     }
     /// <summary>
     /// 修改权限表信息
     /// </summary>
     /// <param name="data"></param>
     /// <returns></returns>
     public int Power_Edit(Powers data)
     {
         return dal.Power_Edit(data);
     }
     
    }
}
